<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/*
| -------------------------------------------------------------------------
| URI ROUTING
| -------------------------------------------------------------------------
| This file lets you re-map URI requests to specific controller functions.
|
| Typically there is a one-to-one relationship between a URL string
| and its corresponding controller class/method. The segments in a
| URL normally follow this pattern:
|
|	example.com/class/method/id/
|
| In some instances, however, you may want to remap this relationship
| so that a different class/function is called than the one
| corresponding to the URL.
|
| Please see the user guide for complete details:
|
|	http://codeigniter.com/user_guide/general/routing.html
|
| -------------------------------------------------------------------------
| RESERVED ROUTES
| -------------------------------------------------------------------------
|
| There area two reserved routes:
|
|	$route['default_controller'] = 'welcome';
|
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "welcome" class
| would be loaded.
|
|	$route['404_override'] = 'errors/page_missing';
|
| This route will tell the Router what URI segments to use if those provided
| in the URL cannot be matched to a valid route.
|
*/

$route['default_controller'] = 'welcome';
$route['country-(:any)'] = 'welcome/selectCountry/$1';
$route['rateYourEndure/(:any)/(:any)'] = 'welcome/rateYourEndure/$1/$2';
$route['ckboss_enterprises'] = 'enterprises/login';
$route['authenticate'] = 'enterprises/authenticate';
$route['logOut'] = 'enterprises/logOut';
$route['addUser'] = 'enterprises/addUser';
$route['insertUser'] = 'enterprises/insertUser';
$route['editUserPerm'] = 'enterprises/editUserPerm';
$route['updatePermissions'] = 'enterprises/updatePermissions';
$route['editUserPermission/(:any)'] = 'enterprises/editUserPermission/$1';
$route['deleteUser/(:any)'] = 'enterprises/deleteUser/$1';
$route['CategoryCMS'] = 'enterprises/CategoryCMS';
$route['viewCategories'] = 'enterprises/getCategory';
$route['addCategory'] = 'enterprises/addCategory';
$route['editCategory/(:any)'] = 'enterprises/editCategory/$1';
$route['updateCategory'] = 'enterprises/updateCategory';
$route['StoreCMS'] = 'enterprises/StoreCMS';
$route['viewStores/(:any)'] = 'enterprises/getStore/$1';
$route['addStore'] = 'enterprises/addStore';
$route['editStore/(:any)'] = 'enterprises/editStore/$1';
$route['updateStore'] = 'enterprises/updateStore';
$route['CouponCMS'] = 'enterprises/CouponCMS';
$route['addCoupon'] = 'enterprises/addCoupon';
$route['viewCoupons/(:any)'] = 'enterprises/getCoupon/$1';
$route['DetailCMS'] = 'enterprises/DetailCMS';
$route['detailpage'] = 'enterprises/detailpage';
$route['BankCMS'] = 'enterprises/BankCMS';
$route['viewBanks'] = 'enterprises/viewBanks';
$route['addBank'] = 'enterprises/addBank';
$route['editBank/(:any)'] = 'enterprises/editBank/$1';
$route['updateBank'] = 'enterprises/updateBank';
$route['newsCMS'] = 'enterprises/ewsCMS';
$route['addnews'] = 'enterprises/addnews';
$route['editCoupon/(:any)'] = 'enterprises/editCoupon/$1';
$route['updateCoupon'] = 'enterprises/updateCoupon';
$route['showStoreViews'] = 'enterprises/showStoreViews';
$route['bannerCMS'] = 'enterprises/BannerCMS';
$route['addBanner'] = 'enterprises/addBanner';
$route['viewBanners/(:any)'] = 'enterprises/getBanner/$1';
$route['editBanner/(:any)'] = 'enterprises/editBanner/$1';
$route['updateBanner'] = 'enterprises/updateBanner';
$route['videoCMS'] = 'enterprises/VideoCMS';
$route['addVideo'] = 'enterprises/addVideo';
$route['viewVideos/(:any)'] = 'enterprises/getVideo/$1';
$route['editVideo/(:any)'] = 'enterprises/editVideo/$1';
$route['updateVideo'] = 'enterprises/updateVideo';
$route['shareCouponCMS'] = 'enterprises/shareCouponCMS';
$route['editSharedCoupon/(:any)'] = 'enterprises/editSharedCoupon/$1';
$route['occasionCMS'] = 'enterprises/occasionCMS';
$route['addOccasion'] = 'enterprises/addOccasion';
$route['viewOccasions'] = 'enterprises/viewOccasions';
$route['editOccasion/(:any)'] = 'enterprises/editOccasion/$1';
$route['updateOccasion'] = 'enterprises/updateOccasion';
$route['showContactUs'] = 'enterprises/showContactUs';
$route['viewMessage/(:any)'] = 'enterprises/viewMessage/$1';
$route['cronJob'] = 'enterprises/viewCronJob';
$route['submitCron/(:any)/(:any)/(:any)'] = 'enterprises/submitCron/$1/$2/$3';
$route['insertMailer'] = 'enterprises/insertMailer';
$route['addMailer'] = 'enterprises/addMailer';
$route['viewMailer'] = 'enterprises/viewMailer';
$route['createMailer'] = 'enterprises/createMailer';
$route['editMailer/(:any)'] = 'enterprises/editMailer/$1';
$route['updateMailer'] = 'enterprises/updateMailer';
$route['sendMailer/(:any)'] = 'enterprises/sendMailer/$1';
$route['sendMailerTo/(:any)/(:any)'] = 'enterprises/sendMailerTo/$1/$2';
$route['getMailerList/(:any)'] = 'enterprises/getMailerList/$1';
$route['storeDeals'] = 'enterprises/storeDeals';
$route['viewstoreDeals'] = 'enterprises/viewStoreDeals';
$route['selectUrl/(:any)'] = 'enterprises/selectUrl/$1';
$route['addStoreDeals'] = 'enterprises/addStoreDeals';
$route['editStoreDeals/(:any)'] = 'enterprises/editStoreDeals/$1';
$route['updateStoreDeals'] = 'enterprises/updateStoreDeals';
$route['popupOffer'] = 'enterprises/popupOffer';
$route['addPopupOffer'] = 'enterprises/addPopupOffer';
$route['editPopupOffer/(:any)'] = 'enterprises/editPopupOffer/$1';
$route['updatePopupOffer'] = 'enterprises/updatePopupOffer';
$route['showPopStore'] = 'enterprises/showPopularStore';

//---CMS Ends------/s/

//---FrontEnd Starts------//
$route['home.php/more-results/(:any)'] = 'welcome/moreResult/$1';
$route['redirect.php'] = 'welcome/redirectPage';
$route['top-deals'] = 'welcome/getTopDeals';
$route['deals/(:any)'] = 'welcome/getStoreHome/$1';
$route['(:any)'] = 'welcome/dealDetail/$1';



$route['all-stores'] = 'welcome/getAllStores';
$route['all-categories'] = 'welcome/getAllCategories';
$route['about-us'] = 'welcome/aboutUs';
$route['contact-us'] = 'welcome/contactUs';
$route['advertisers'] = 'welcome/advertisers';
$route['advertiser.html'] = 'welcome/submitAdvertiser';
$route['(:any)-offers-and-deals'] = 'welcome/getOccasion/$1';
$route['(:any)-offers'] = 'welcome/getBankOffers/$1';
$route['waitingpage/(:any)/(:any)'] = 'welcome/waitingpage/$1/$2';
$route['contact-us.html'] = 'welcome/contacts';
$route['subscribeEmailId/(:any)/(:any)/(:any)'] = 'welcome/subscribeEmailId/$1/$2/$3';
$route['submitcoupon/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)/(:any)'] = 'welcome/shareCoupon/$1/$2/$3/$4/$5/$6/$7';
$route['(:any)-coupons'] = 'welcome/getStoreHome/$1';
$route['(:any)-coupon-codes'] = 'welcome/getCategoryStores/$1';
$route['all-stores/(:any)'] = 'welcome/getAlphaStores/$1';
$route['(:any).html'] = 'welcome/searchStore/$1';
$route['(:any)-deals'] = 'welcome/getStoreDeals/$1';
$route['deals'] = 'welcome/getDeals';
$route['all-occasions'] = 'welcome/getOccasions';
$route['top-coupons/(:any)/(:any)'] = 'welcome/getCouponDetail/$1/$2';
$route['sitemap.php'] = "welcome/generateSiteMap";
$route['storeredirectCheck/(:any)'] = 'enterprises/storeredirectCheck/$1';
//cms rerouting
$route['deals_cms'] = 'enterprises/login';
$route['authenticate'] = 'enterprises/authenticate';
$route['logOut'] = 'enterprises/logOut';
$route['addUser'] = 'enterprises/addUser';
$route['insertUser'] = 'enterprises/insertUser';
$route['editUserPerm'] = 'enterprises/editUserPerm';
$route['updatePermissions'] = 'enterprises/updatePermissions';
$route['editUserPermission/(:any)'] = 'enterprises/editUserPermission/$1';
$route['deleteUser/(:any)'] = 'enterprises/deleteUser/$1';
$route['CategoryCMS'] = 'enterprises/CategoryCMS';
$route['viewCategories'] = 'enterprises/getCategory';
$route['addCategory'] = 'enterprises/addCategory';
$route['editCategory/(:any)'] = 'enterprises/editCategory/$1';
$route['updateCategory'] = 'enterprises/updateCategory';
$route['StoreCMS'] = 'enterprises/StoreCMS';
$route['viewStores/(:any)'] = 'enterprises/getStore/$1';
$route['addStore'] = 'enterprises/addStore';
$route['editStore/(:any)'] = 'enterprises/editStore/$1';
$route['updateStore'] = 'enterprises/updateStore';
$route['CouponCMS'] = 'enterprises/CouponCMS';
$route['addCoupon'] = 'enterprises/addCoupon';
$route['viewCoupons/(:any)'] = 'enterprises/getCoupon/$1';

$route['404_override'] = 'welcome/override';


/* End of file routes.php */
/* Location: ./application/config/routes.php */
